﻿using System;
using System.ServiceModel;

namespace MockingBird.Simulator.Interceptors.Wcf.Contracts.Clients
{
    public class IOneWayDuplexAsyncClient : ClientBase<IOneWayDuplexAsync>, IOneWayDuplexAsync
    {
        public IOneWayDuplexAsyncClient(string endpointName)
            : base(endpointName)
        {
        }

        #region IOneWayDuplexAsync Members

        public IAsyncResult BeginProcessMessage(System.ServiceModel.Channels.Message message, AsyncCallback callback, object state)
        {
            return this.Channel.BeginProcessMessage(message, callback, state);
        }

        public void EndProcessMessage(IAsyncResult result)
        {
            this.Channel.EndProcessMessage(result);
        }

        #endregion
    }
}
